[TCP] Implement Zero window probe#35
Closed
danielinux wants to merge 5 commits intowolfSSL:masterfrom
Closed
Conversation
- Fixed bug in smooth average RTT calculation - Actually assign calculated RTO value (previously fixed to 1s) - Enforce min/max RTO according to RFC - Enforce Karn to only account for new ACK in RTO calculation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends wolfIP’s TCP behavior to better handle stalled connections by adding a zero-window persist/probe mechanism, while also introducing related TCP RTO/control-RTO updates and accompanying unit tests.
Changes:
- Add TCP persist timer logic and a 1-byte “zero window probe” send path when the peer advertises a zero receive window.
- Add/adjust TCP RTO tracking (SRTT/RTTVAR, Karn handling via
PKT_FLAG_WAS_RETRANS) and implement control-segment (SYN/FIN) retransmission timing with retry caps. - Expand unit tests to cover new RTO/control-RTO behaviors and basic persist/probe behavior; update README TCP feature list.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
src/wolfip.c |
Implements persist/probe logic, RFC6298-style RTO updates, Karn handling, and control-segment RTO retries. |
src/test/unit/unit.c |
Adds/updates unit tests for control-RTO, RTO math, Karn skip-on-retrans, and persist/probe basics. |
README.md |
Documents TCP RTO computation support in the feature matrix. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
danielinux
added a commit
to danielinux/wolfip
that referenced
this pull request
Feb 20, 2026
Fix: probe_seq may be set to snd_una when snd_una falls within an existing queued segment
danielinux
added a commit
to danielinux/wolfip
that referenced
this pull request
Feb 20, 2026
Proper clean-up on close: Manage ACK in TCP_LAST_ACK state.
danielinux
added a commit
to danielinux/wolfip
that referenced
this pull request
Feb 20, 2026
Member
Author
|
Closing in favor of #36 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on previous PR #34